<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="keywords" content="vé máy bay, vé máy bay 24h, vé máy bay giá rẻ, vé máy bay trực tuyến, vé máy bay online, vé tết, vé máy bay quốc tế, viet jetair, jet start, vietnam airline, air mekong" />
	<?php echo $this->Html->charset(); ?>

	<?php if($this->fetch('title')):
		echo $this->fetch('title');
	else: ?>
		<title> Vé Máy Bay | Vé Tàu | Tour Du Lịch | Tư Vấn Du Lịch | Vé Tết - vemaybay24h.com.vn</title>
	<?php endif; ?>		

	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.frontend');
	  echo $this->Html->script('jquery-1.8.1.min');
		echo $this->Html->script('application');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-32983502-1']);
		_gaq.push(['_trackPageview']);

		(function() {
		  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
	</script>
</head>
<body>
	<div id='wrapper'>
		<div id="header">
			<?php echo $this->Html->image('beta.png'); ?>
			<?php echo $this->Html->link($this->Html->image('logo24.png', array('class' => 'logo24')), $this->webroot, array('escape' => false));?>
			<?php echo $this->fetch("menu"); ?>
		</div> <!-- end #header -->
		<div id="content">

			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>
		</div>
		<div id='footer'>	
			<div class='contactinf'>
				<?php echo $this->Html->image('flogo.png', array('class' => 'flogo' )); ?>
				<p class='finfo'>
					<website>VEMAYBAY24H.COM.VN</website>
					<tel>Website: vemaybay24h.com.vn</tel><br/>
					<tel>Tel: 0909027290 – 0938099222</tel><br/>
					<email>Email: vemaybay24h.service@gmail.com</email>
				</p>
			</div>
			<ul class='fmenu'>
				<?php 
					$menus = $this->App->getMenus(); 	
					$i = 0;
				?>
				<?php foreach ($menus as $key => $value){ $i++; ?>
					<li> 
						<a href="<? echo $value[1] ?>"><?php echo $value[0] ?></a>
					</li> 
					<?php echo count($menus) == $i ? '' : ' | ' ?>
				<?php } ?>
			</ul>
		</div> <!-- end #footer --> 
	</div> <!-- end wrapper -->
	<div id='ajaxloader' style="display:none;"> 
		<?php echo $this->Html->image('loading.gif'); ?>Vui lòng chờ 
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
